package com.tnovoselec.android.travelassistant.adapter;

import android.content.Context;

import com.tnovoselec.android.travelassistant.Constant;
import com.tnovoselec.android.travelassistant.R;
import com.tnovoselec.android.travelassistant.dto.IGeoPoint;

public class BenzinskeAdapter extends AbstractAdapter<IGeoPoint> {

	public BenzinskeAdapter(Context context) {
		super(context);

	}

	@Override
	protected int getLogoImageResource(IGeoPoint item) {
		if (item.getBank_id().toLowerCase().contains(Constant.INA_REGEX)) {
			return R.drawable.ina_icon;
		} else if (item.getBank_id().toLowerCase().contains(Constant.PETROL_REGEX)) {
			return R.drawable.petrol_icon;
		} else if (item.getBank_id().toLowerCase().contains(Constant.OMV_REGEX)) {
			return R.drawable.omv_icon;
		} else if (item.getBank_id().toLowerCase().contains(Constant.LPG_REGEX)) {
			return R.drawable.lpg_icon;
		} else if (item.getBank_id().toLowerCase().contains(Constant.CROBENZ_REGEX)) {
			return R.drawable.crobenz_icon;
		} else {
			return -1;
		}
	}
}
